let proxyObj = {};

proxyObj[process.env.VUE_APP_BASE_API] = {
    ws: false,
    target: 'http://localhost:8081',
    changeOrigin: true,
    pathRewrite: {
        ['^' + process.env.VUE_APP_BASE_API]: ''
    }
}

module.exports = {
    devServer: {
        host: 'localhost',
        port: 8080,
        proxy: proxyObj
    },
    // 文件打包问题
    publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
    assetsDir: 'static'
}
